package com.sen.organization.feign;

import com.sen.common.common.bo.PeopleInfo;
import com.sen.common.common.response.MessageResult;
import com.sen.organization.feign.fallback.MemberPeopleFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author esjiang
 */
@FeignClient(name = "czy-member",decode404 = true,fallbackFactory = MemberPeopleFeignFallbackFactory.class )
public interface MemberPeopleFeign {

    /**
     * 账户登录-获取人员信息
     * @param userName
     * @return
     */
    @GetMapping("/people/peopleInfo")
    MessageResult<PeopleInfo> getPeopleInfoByLogin(@RequestParam("userName") String userName) ;

}
